$item modify entity @s weapon.mainhand $(item_modifier)
data remove entity @s HandItems[0].components."minecraft:custom_data".item_modifier